package projectEuler;

public class Problem_06 {

        public static void main(String[] args) {
                int sum = 0;
                int sum2 = 0;
                for(int count = 1; count <= 100; count++){
                        sum = (int) (sum + Math.pow(count, 2));
                        sum2 = sum2 + count;
                }
                System.out.println(sum2+" "+sum);
                System.out.println(Math.pow(sum2, 2) - sum);

        }

}
